package main

import (
	"log"
	"os"
	"os/signal"
	"syscall"

	proxy "gitee.com/fanshuaiself/proxy-server/proxy/internal"
)

func main() {
	server := proxy.NewServer()
	server.Start(8000)
	log.Println("proxy server started")

	ch := make(chan os.Signal, 1)
	signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT)

	<- ch
	server.Stop()
}